package org.bao.action;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.bao.bean.phoneBean;
import org.bao.service.IPhoneMsg;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 手机信息查询
 *
 */
@Controller
public class PhoneMsgAction {

	@Resource
	private IPhoneMsg phoneS;// 按名称匹配进行注入

	@ResponseBody
	@RequestMapping("/QueryPhoneMsg")
	public List<phoneBean> queryPhoneMsg(phoneBean userB, HttpServletRequest request) {

		// 获取商品ID
		String phoneid = request.getParameter("phoneid");

		Integer phoneidI = new Integer(phoneid);

		List<phoneBean> lisphone = phoneS.selectIdInfo(phoneidI);
		
		System.out.println("Action接受到信息:"+lisphone);
		return lisphone;

	}
}
